<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 500px;
            height: 400px;
            border: 2px solid black;
            text-align: right;
            margin-left: 200px;
        }
    </style>
</head>
<body>
<div>
    <form method="post" style="margin-right: 150px;margin-top:80px">
        <p>
        <h2>注册用户</h2>
        </p>
        <p>
            用户名：<input type="text" value="" name="user_name">
        </p>
        <p>
            密码：<input type="text" value="" name="user_password">
        </p>
        <p>
            再次输入密码：<input type="text" value="" name="user_password2">
        </p>
        <p>
            <button type="submit">注册</button>
        </p>

        {% if not flag_pass %}
        <p><span style="color: red">输入密码不一致，请重新输入！</span></p>
        {% endif %}

        {% if flag_reged %}
        <p><span style="color: red">此用户名已经被注册！</span></p>
        {% endif %}
    </form>
</div>


</body>
</html>